package com.appcenter.message.service;

import com.appcenter.message.input.SearchMessageListInput;
import com.appcenter.message.input.externalapi.ReadMsgInput;
import com.appcenter.message.input.externalapi.SendMsgInput;
import com.appcenter.message.model.MessageTargets;
import com.appcenter.message.output.SearchMessageListOutput;
import com.appcenter.message.output.externalapi.ReadMsgOutput;
import com.appcenter.message.output.externalapi.SendMsgOutput;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExternalAPISercive {

    @Autowired
    MessagesService messagesService;
    /**
     *  创建人:Coke
     *  备注: 发送消息
     *  时间: 2019/4/26 14:49 
     *  参数: 
     */
    public SendMsgOutput SendMsg(SendMsgInput input) throws Exception {
        return messagesService.SendMessage(input);
    }
    /**
     *  创建人:Coke
     *  备注: 读消息   消息未读转已读
     *  时间: 2019/4/26 14:49 
     *  参数: 
     */
    public ReadMsgOutput ReadMsg(ReadMsgInput input){
        return messagesService.ReadMessage(input);
    }
    /**
     *  创建人:Coke
     *  备注: 查询当前人的消息信息
     *  时间: 2019/4/26 16:01
     *  参数: 
     */
    public SearchMessageListOutput GetMsgByUsers(SearchMessageListInput input){
        return messagesService.SearchMessageList(input);
    }
}
